package designPattern.bridge;

/**
 * Created by cdxuhongya on 2017/1/9.
 */
public class Test {
    public static void main(String[] args) {
        Bridge bridge = new MyBirdge();
        SourceAble sourceAble = new Source1();
        bridge.setSource(sourceAble);
        bridge.method();

        bridge.setSource(new Source2());
        bridge.method();
    }
}
